<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="<%=basePath%>favicon.ico" />

<script>
	var _provinceId = '';
	var isLogin = 'false' == 'true';
</script>

<title>我的地址</title>
<link rel="stylesheet" href="<%=basePath%>css/common/normalize.css">
<link rel="stylesheet" href="<%=basePath%>/css/user/login.css">
<link rel="stylesheet" href="<%=basePath%>css/common/iconfont.css">
</head>

<body>
	<div class="m-wrapper">

		<jsp:include page="header_member.jsp"></jsp:include>

		<div class="content box-tab" id="box-main">

			<!-- address list -->
			<div class="addr_list">
				<c:forEach items="${address_list}" var="addr">
					<dl class="addr_item">
						<dd>
							<h3 class="addr-name fl">${addr.name}</h3>
							<span class="addr-tel fl">&nbsp;&nbsp;${addr.phone}</span>
						</dd>

						<dd class="addr-desc">
							<div>${addr.province}&nbsp;${addr.city} &nbsp;
								${addr.county} &nbsp; ${addr.address}</div>
						</dd>

						<dd class="addr-default">
							<c:choose>
								<c:when test="${addr.enable==1}">
								默认地址
								</c:when>
								<c:otherwise>
									<span class="fl"><a
										href="<%=basePath%>mobile/updateSate_address?addressId=${addr.id}">设置成默认地址</a></span>
								</c:otherwise>
							</c:choose>

							<span class="addr-edit fr color_green"> <a
								href="<%=basePath%>mobile/addOrEditAddress?addressid=${addr.id}" ><i
									class="icon_edit">&nbsp;</i>编辑</a> | <a
								href="<%=basePath%>mobile/del_address?addressId=${addr.id}"><i
									class="icon_delete">&nbsp;</i>删除</a>
							</span>
						</dd>
					</dl>
				</c:forEach>
			</div>
			<!-- /address list -->

			<p class="clear"></p>

			<!-- 底部按钮 -->
			<div class="addr_btn_div border_top_eee center fixed_bottom">
				<a class="btn_addr" id="logbtn" href="<%=basePath%>mobile/addOrEditAddress"> <i
					class="icon_plus">&nbsp;</i>新增收货地址
				</a>
			</div>
			<!-- 底部按钮 end-->

		</div>
		<!-- main box end-->


	</div>

	<script type="text/javascript" src="<%=basePath%>js/zepto.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/util.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/head.js"></script>

	<script type="text/javascript">
		$("#header_title").html("我的地址");
	</script>
</body>
</html>